﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage"  Debug="true" %>
<%@ Import Namespace="Asp.netMvc" %>
<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
什麽什麽歸
</asp:Content>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">

    <form id="form1" runat="server">

    <h2><%= Html.Encode(ViewData["Message"]) %>
    
    

<ul>

<%

    Repeater1.DataSource = (ViewData.Model as List<Asp.netMvc.Models.tblRouteD>).Take(20);
    Repeater1.DataBind();
    GridView1.DataSource = Repeater1.DataSource;
    GridView1.DataBind();
    foreach (var M in ViewData.Model as List<Asp.netMvc.Models.tblRouteD>)
    {

        //调用 User Control 
             %>    
<%--<li>

<%=M.站名%>
</li>--%>
<!--
<%Html.RenderPartial("~/Ascx/ViewTblRouteD.ascx", M);%>
-->
<%} %>

    <li>
        <asp:Button ID="Button1" runat="server" Text="Button" />
    </li>

</ul>


    <asp:Repeater ID="Repeater1" runat="server">
    <ItemTemplate>
        <li>
    <%#Eval("线路ID") %>
    </li>
    </ItemTemplate>

    </asp:Repeater>


    <asp:GridView ID="GridView1" runat="server">
    </asp:GridView>


    </h2>
    


    

    </form>
    


    

</asp:Content>
